package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season s=Season.SUMMER;
        System.out.println(s.getSeasonName()+"很"+s.getSeasonDESC());
        switch (s){
            case SPRING:
                System.out.println("天气"+s.getSeasonDESC()+"放风筝去了...");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDESC()+"玩游戏去了...");
                break;
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDESC()+"逛公园去了...");
                break;
            case WINTER:
                System.out.println("天气"+s.getSeasonDESC()+"堆雪人去了...");
                break;
        }
        Season[] seasons=Season.values();
        for (int i=0;i<seasons.length;i++){
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasonDESC());
        }
    }
}
